package com.hong.springbootrabbitmqconsumer;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {

    @Bean
    public Queue queue1() {
        return new Queue("queue1", true, false, false);
    }

    @Bean
    public Queue queue2() {
        return new Queue("queue2", true, false, false);
    }
}
